Skip to content

[DTOSS-12260] - feat(bootstrap): add bootstrap Bicep and Terraform make targets for mbsgw - #37

Merged
josielsouzanordcloud merged 1 commit into
mainfrom
DTOSS-12260-create-bootstrap-and-identities
Feb 26, 2026
Merged

[DTOSS-12260] - feat(bootstrap): add bootstrap Bicep and Terraform make targets for mbsgw#37
josielsouzanordcloud merged 1 commit into
mainfrom
DTOSS-12260-create-bootstrap-and-identities

Conversation

@josielsouzanordcloud

Copy link
Copy Markdown
Contributor

Description

This PR adds a new bootstrap process using Bicep templates and Makefile targets to initialise the resource group for the mbsgw application. It includes environment-specific variable files, Bicep modules for various infrastructure components such as DNS zones, Key Vault, and managed identities, and a bash script to orchestrate the deployment.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Infrastructure change
  • Pipeline / CI
  • Documentation update
  • Refactor

Jira link

DTOSS-12260
https://nhsd-jira.digital.nhs.uk/browse/DTOSS-12260

Review notes

  • Makefile:
    • Added include for Terraform make targets.
  • Environment variable files (variables.sh):
    • Created for dev, preprod, prod, and review environments with necessary configuration.
  • Bicep modules:
    • core.bicep: Role assignments for managed identity and Entra ID group.
    • dns.bicep: DNS zone creation.
    • keyVault.bicep: Key Vault creation and role assignments.
    • main.bicep: Orchestrates the deployment of various resources like storage account, private endpoint, and key vault.
    • managedIdentity.bicep: Managed identity creation with federated credentials.
    • privateEndpoint.bicep: Private endpoint creation.
    • storage.bicep: Storage account creation and blob configuration.
  • Bash script (resource_group_init.sh):
    • Fetches the user group principal ID and deploys Bicep templates for both hub and core subscriptions.

Breaking changes

None

Impact

  • Deployment of infrastructure resources for the mbsgw application.
  • Setup of managed identities, DNS zones, Key Vault, and private endpoints.
  • Environment-specific configuration based on variable files.

Review checklist

  • Check database queries are correctly scoped to current_provider

Adds environment-specific variables, Bicep modules for resource group initialisation, and a Makefile target to automate deployment. Also includes gitleaks annotations for role IDs.

Refs: DTOSS-12260
@josielsouzanordcloud
josielsouzanordcloud force-pushed the DTOSS-12260-create-bootstrap-and-identities branch from 17be4ed to 4543cb2 Compare February 26, 2026 10:32
@josielsouzanordcloud
josielsouzanordcloud merged commit 60462e0 into main Feb 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants